<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip'); ?>
<?php
echo JhtraqHelper::drawTabs($this->project->slug);
?>
<p></p>
<div class="componentheading">
<?php echo $this->project->name; ?> - <?php echo JText::_('COM_JHTRAQ_SVN_LOG');?> <?php echo JText::_('COM_JHTRAQ_REVISION');?><?php echo $this->version;?>

</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<thead>
<tr>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_REV');?></th>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_DATE');?></th>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_AUTHOR');?></th>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_COMMENT');?></th>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_ADDED');?></th>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_MODIFIED');?></th>
</tr>	
</thead>



<tbody>
<?php
$r = 0;
$link = 'index.php?option=com_jhtraq&view=svn&project='.$this->project->slug.'&action=viewlog';
foreach($this->logs as $log)
{
	?>
	<tr class="sectiontableentry<?php echo $r + 1; ?>">
	<td><?php echo $log['version'];?></td>
	<td><?php echo DATE(JText::_('COM_JHTRAQ_DATE_FORMAT'), strtotime($log['date']));?></td>
	<td><?php echo $log['author']?></td>
	<td><?php echo JHTML::tooltip($log['comment'], '', '', substr($log['comment'],0,20) . '...', JRoute::_($link.'&v='.$log['version']), true) ?></td>
	<td><?php echo (int)count(@$log['add_files'])?></td>
	<td><?php echo (int)count(@$log['mod_files'])?></td>
	</tr>
	<?php
	$r = 1-$r;
}
?>
<tr><td colspan="6" align="center" class="sectiontablefooter"><?php echo $this->_pagination->getPagesLinks();?></td></tr>
</tbody>

</table>